Fixed "wfTimestamp() fed bogus time value" errors
authorAaron Schulz <aschulz@wikimedia.org>
Wed, 10 Jun 2015 01:47:49 +0000 (18:47 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Wed, 10 Jun 2015 01:47:49 +0000 (18:47 -0700)
* This broke OutputPage::checkLastModified() as the touched time was false

Change-Id: I118d3ddf07c7b69ad269f3aee0c70ab4159df192

includes/User.php

index bf0326a..61313a3 100644 (file)
@@ -2362,7 +2362,7 @@ class User implements IDBAccessObject {
 
                                $timestamp = $cache->getCheckKeyTime( $key );
                                if ( $timestamp ) {
-                                       $this->mQuickTouched = wfTimestamp( TS_MW, $timestamp );
+                                       $this->mQuickTouched = wfTimestamp( TS_MW, (int)$timestamp );
                                } else {
                                        # Set the timestamp to get HTTP 304 cache hits
                                        $this->touch();